//
//  RGMessageInterfaceBulider.m
//  RedGrass
//
//  Created by wuyine on 2019/1/3.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import "RGMessageInterfaceBulider.h"

@implementation RGMessageInterfaceBulider
//获取消息列表 类型0对话列表、1粉丝、2赞、3@我的、4评论
+(NSDictionary *)bulidMessageListWithType:(MessageType)type pageNumber:(NSInteger)pageNumber pageSize:(NSInteger)pageSize{
    NSMutableDictionary *dic = [HttpInterfaceBulider buildBaseParams];
    [dic setObject:SafeStr([RGUserInfoModel getUserInfo].token) forKey:@"token"];
    [dic setObject:@(type) forKey:@"type"];
    [dic setObject:@(pageNumber) forKey:@"pageNumber"];
    [dic setObject:@(pageSize) forKey:@"pageSize"];
    return [dic copy];
}

//联系人
+(NSDictionary *)buildLinkman {
    NSMutableDictionary *dic = [HttpInterfaceBulider buildBaseParams];
    [dic setObject:SafeStr([RGUserInfoModel getUserInfo].token) forKey:@"token"];
    return [dic copy];
}

//关注
+(NSDictionary *)buildUserAdd:(NSInteger)id {
    NSMutableDictionary *dic = [HttpInterfaceBulider buildBaseParams];
    [dic setObject:SafeStr([RGUserInfoModel getUserInfo].token) forKey:@"token"];
    [dic setObject:@(id) forKey:@"id"];
    return [dic copy];
}

//取消关注
+(NSDictionary *)buildUserCancel:(NSInteger )id {
    NSMutableDictionary *dic = [HttpInterfaceBulider buildBaseParams];
    [dic setObject:SafeStr([RGUserInfoModel getUserInfo].token) forKey:@"token"];
    [dic setObject:@(id) forKey:@"id"];
    return [dic copy];
}
@end
